package com.jihox.abookpro.util;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class ConfigProperties {
	public static Properties getConfigProperties() {
		Properties props = new Properties();
		InputStream in = ConfigProperties.class
				.getResourceAsStream("/config.properties");
		try {
			props.load(in);
		} catch (IOException e) {
			e.printStackTrace();
		}
		return props;
	}

	public static String getAliPayNotifyUrl(){
		return getConfigProperties().getProperty("AliPayNotifyUrl");
	}
	
	public static String getOrderServerUrl() {

		return getConfigProperties().getProperty("OrderServer");
	}
	
	public static String getOrderCountServerUrl() {

		return getConfigProperties().getProperty("OrderCountServer");
	}

	public static String getUploadServerUrl() {

		return getConfigProperties().getProperty("UploadServer");
	}

	public static String getUploadFinishedSizeUrl() {

		return getConfigProperties().getProperty("UploadFinishedSizeUrl");
	}

	public static String getUploadedWorkUrl() {

		return getConfigProperties().getProperty("UploadedWorkUrl");
	}
	
	public static String getQueryOrderUrl() {

		return getConfigProperties().getProperty("QueryOrderUrl");
	}
	
	public static String getProductPriceUrl() {

		return getConfigProperties().getProperty("GetProductPriceUrl");
	}
	public static String getErrorMail()
	{
		return getConfigProperties().getProperty("ErrorEmail");
	}
	public static String getErrorMailPwd()
	{
		return getConfigProperties().getProperty("ErrorEmailPwd");
	}
	public static String getErrorMailReciver()
	{
		return getConfigProperties().getProperty("ReceiveEmail");
	}
	public static String getMailHost()
	{
		return getConfigProperties().getProperty("Host");
	}
	
	public static String getWXAppId()
	{
		return getConfigProperties().getProperty("WeiXinAppid");
	}
	public static String getSinaAppId()
	{
		return getConfigProperties().getProperty("Sina_App_Key");
	}
	public static String getFrontiaAppKey()
	{
		return getConfigProperties().getProperty("FrontiaAppKey");
	}
	public static String getShareLinkUrl()
	{
		return getConfigProperties().getProperty("ShareLinkUrl");
	}
	
	public static String getUploadedOrderShareLinkUrl()
	{
		return getConfigProperties().getProperty("UploadedOrderShareLinkUrl");
	}
	
	public static String getQQAppId()
	{
		return getConfigProperties().getProperty("QQAppId");
	}
	public static String getBlockUploadServerUrl()
	{
		return getConfigProperties().getProperty("BlockUploadServer");
	}
	public static String getPreferential()
	{
		return getConfigProperties().getProperty("Preferential");
	}
	public static String getQuickpay()
	{
		return getConfigProperties().getProperty("QuickPay");
	}
	
	public static String getMixPay()
	{
		return getConfigProperties().getProperty("MixPay");
	}
	
	public static String getCancelCouponUrl()
	{
		return getConfigProperties().getProperty("CancelCoupon");
	}
	
	public static String getAlipayconfigsUrl()
	{
		return getConfigProperties().getProperty("Alipayconfigs");
	}
	
	public static String getShareUploadUrl(){
		return getConfigProperties().getProperty("ShareUpload");
	}
	
	public static String getVersionCheckUrl(){
		return getConfigProperties().getProperty("VersionCheck");
	}
	
	public static String getOrdersListUrl(){
		return getConfigProperties().getProperty("OrderList");
	}
	
	public static String getUserIdUrl(){
		return getConfigProperties().getProperty("GetUserId");
	}
	
	public static String getDeleteOrderUrl(){
		return getConfigProperties().getProperty("OrderDelete");
	}
	
	public static String getAgainOrder(){
		return getConfigProperties().getProperty("AgainOrder");
	}
	//登录Url
	public static String getLoginUrl(){
		return getConfigProperties().getProperty("LoginUrl");
	}
	//获取注册验证码Url
	public static String getRegisterDynamicCodeUrl() {
		return getConfigProperties().getProperty("getRegisterDynamicCodeUrl");
	}
	//获取重置密码的验证码
	public static String getDynamicCodeForResetPasswordUrl() {
		return getConfigProperties().getProperty("getDynamicCodeForResetPasswordUrl");
	}
	//获取动态注册的Url
	public static String getVerifySignUpUrl() {
		return getConfigProperties().getProperty("getVerifySignUpUrl");
	}
	//获取重置密码Url
	public static String resetPasswordUrl() {
		return getConfigProperties().getProperty("resetPasswordUrl");
	}
	//获取三方登录的Url
	public static String proxyLoginUrl(){
		return getConfigProperties().getProperty("proxyLoginUrl");
	}
	public static String getTemplateUrl(){
		return getConfigProperties().getProperty("getTemplateUrl");
	}
	public static String getTemplatePath(){
		return getConfigProperties().getProperty("templatePath");
	}
	public static String getTemplate(){
		return getConfigProperties().getProperty("getTemplate");
	}
	public static String getOrderResourcesPath(){
		return getConfigProperties().getProperty("orderResourcesPath");
	}
	public static String getOrderResourcesDown(){
		return getConfigProperties().getProperty("orderResourcesDown");
	}
	
	public static String getShareText(){
		return getConfigProperties().getProperty("getShareText");
	}

}
